﻿namespace Stratrgy
{
    internal class WinningStrategy : IStrategy
    {
        private Random random;
        private bool won;
        private Hand previousHand;
        public WinningStrategy(int seed) 
        {
            this.random = new Random(seed);
        }

        public Hand NextHand()
        {
            if (!won) 
            {
                this.previousHand = Hand.GetHand(random.Next(3));
            }
            return previousHand;
        }

        public void Study(bool win)
        {
            won = win;
        }
    }
}
